const mongoose = require("mongoose");
const adminModel = require('./adminModel');
const shopDoorModel = require('./shopDoorModel');
const applyForSchema = new mongoose.Schema({
    type: Number,   // 申请类型（门店管理员申请:0/新门店申请：1/注销门店申请：2）
    status: Number,   // 申请状态（申请中：0/已通过：1/未通过：2）
    admin: {
        type: mongoose.Schema.Types.ObjectId,
        ref: adminModel
    },
    shopDoor: {
        type: mongoose.Schema.Types.ObjectId,
        ref: shopDoorModel
    },
})

module.exports = mongoose.model("applyForModel", applyForSchema, "applyFor")